package com.etung.iot.demo.vo.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@Accessors(chain = true)
@ApiModel(value = "报警查询请求")
public class AlarmReq extends PageAuthParam{
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(notes = "开始时间")
    private Date startDate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(notes = "结束时间")
    private Date endDate;
    @ApiModelProperty(notes = "报警详情")
    private String alarmTip;
    @ApiModelProperty(notes = "项目ID")
    private Long projectId;
    @ApiModelProperty(notes = "BOX ID")
    private Long boxId;
    @ApiModelProperty(notes = "严重性")
    private int serious;

    @Override
    public String toString() {
        return "AlarmReq{" +
                "startDate=" + startDate +
                ", endDate=" + endDate +
                ", alarmTip='" + alarmTip + '\'' +
                ", projectId=" + projectId +
                ", boxId=" + boxId +
                ", serious=" + serious +
                '}';
    }
}
